# Maintainer: Krassy Boykinov <kboykinov@teamcentrixx.com>
pkgname=flare
pkgver=0.15.4
pkgrel=0
pkgdesc="Unofficial Signal GTK client"
url="https://gitlab.com/schmiddi-on-mobile/flare"
arch="all"
license="AGPL-3.0-only"
makedepends="
	blueprint-compiler
	cargo
	desktop-file-utils
	gettext-dev
	gtk4.0-dev
	gtksourceview5-dev
	libadwaita-dev
	libsecret-dev
	libspelling-dev
	meson
	protobuf-dev
	"
subpackages="$pkgname-lang"
source="https://gitlab.com/schmiddi-on-mobile/flare/-/archive/$pkgver/flare-$pkgver.tar.gz
	no-cargo-home.patch
	"
# no tests
options="!check net"


prepare() {
	default_prepare

	cargo fetch --target="$CTARGET" --locked
}

build() {
	abuild-meson . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
1bdd5ee994524f6a92141dbb18a12bea4bd7070de42959f9982883569859070d41cffaaa958472dc91fabfc137ce729b47cd6f8f8de0018e546d780e7a682cde  flare-0.15.4.tar.gz
8fbf1841edf7e0ca665592b8f70e61bd5cf95f4b5cf75c26f0ea9c73fd6e715dfc9635f9cf8c09983ba80e82f3f57593bb0a5b08baf67b1d6bc795bcea018d19  no-cargo-home.patch
"
